num=[]
for i in range(3):
	x=int(raw_input("input num:"))
	num.append(x)
print num
num.sort() 
print num